package ssm.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ssm.mapper.BookMapper;
import ssm.pojo.Book;

import java.util.List;
@Service
public class BookService {
    @Autowired
    private BookMapper bookMapper ;
    public List<Book> getAllBook(){
        List<Book> bookList = bookMapper.getAllBook();
        return bookList;
    }
}
